﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>

@model PessMvc.Models.ReviewFeedbackListModel
@using System.Text.RegularExpressions
@{
    ViewBag.Title = "评审意见导入";
}

<div id="m-title">
    <h2>评审意见导入</h2>
    <div id="m-op">
        @using (Html.BeginForm("ImportReviewFeedbacks", "Archive", FormMethod.Post, new { enctype = "multipart/form-data" }))
        {
            @Html.ActionLink(" 下载模版", "Download", "Home", new { filename = "reviewfeedbacks.xlsx" }, null)<span>&#8195;</span>
                <div class="u-uf u-uf-pw"><input type="file" name="file" class="fileNew" id="fileNew" onchange="document.getElementById('textNew').value=this.value" /></div>
                <input type="text" name="textNew" id="textNew" class="u-it textNew" readonly="true" />
                <input type="button" class="u-btn btnNew" value="浏览" />
                <input type="submit" value="上传" class="u-btn" />
    
            @Html.Hidden("subjectID", new { subjectID = Model }, null)

        }
        <span>&#8195;</span>@Html.ActionLink("返回", "Index", "Archive", new { activityID = Model.ActivityID }, null)
    </div>
</div>

<fieldset>
    @*<h3>活动：@Html.DisplayFor(m=>Model.ActivityName)</h3>*@
    <div class="m-sd-xx m-sd-title">
        <div class="title">
            <h3>学科：@Html.DisplayFor(m => Model.SubjectName)</h3>
        </div>
        <div class="sidebd">
            @{
                var grid = new WebGrid(Model.Feedbacks);
            }

            @grid.GetHtml(columns: grid.Columns(
    grid.Column("ArchiveSerialNumber", header: "档案编号"),
        grid.Column("ProjectSN", header: "立项编号"),
        grid.Column("ReviewFeedback", header: "反馈意见", format: @<text>@Regex.Replace(item.ReviewFeedback == null ? "" : item.ReviewFeedback, @"(?></?\w+)(?>(?:[^>'""]+|'[^']*'|""[^""]*"")*)>", string.Empty)</text> ),
        grid.Column("Conclusion",header: "评审结论",format:@<text>@Regex.Replace(item.Conclusion == null ? "" : item.Conclusion, @"(?></?\w+)(?>(?:[^>'""]+|'[^']*'|""[^""]*"")*)>", string.Empty)</text>)
                            )
                        )
        </div>
    </div>
</fieldset>
<script language="javascript">
    document.getElementsByTagName("table")[0].className = "oddTable";
</script>
